package com.haina.shop.vo;

import com.haina.shop.domain.Transport;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ProductVO {
    private Long shopId;
    private String shopName;
    private Long prodId;
    private String prodName;
    private BigDecimal price;
    private String content;
    private BigDecimal oriPrice;
    private Integer totalStocks;
    private String brief;
    private String pic;
    private String imgs;
    private Long categoryId;
    //sku列表
    private List<SkuVO> skuList;
    //运费信息
    private TransportVO transport;

    public ProductVO(String brief, String pic, BigDecimal price, Long prodId, String shopName ) {
        this.shopName = shopName;
        this.prodId = prodId;
        this.price = price;
        this.brief = brief;
        this.pic = pic;
    }
}
